﻿* Encoding: UTF-8.
freq var=verdict_length experience_griffier_days experience_voorzitter_days single_judge district_court first_instance unfounded 
    ecli_references law_references similarity_score.
Compute references=ecli_references + law_references.
freq var=references.

RECODE outcome ('gegrond'=1) ('niet_ontvankelijk'=2) ('onbevoegd'=3) ('ongegrond'=4) INTO 
    outcomenumeriek.
EXECUTE.
freq var=outcome outcomenumeriek.
recode outcomenumeriek (1=1) (else=0) into gegrond.
freq var=gegrond.
recode outcomenumeriek (1=0) (2,3=1) (4=0) into onbevoegd_nietontvankelijk.
freq var=onbevoegd_nietontvankelijk.
recode outcomenumeriek (1,2,3=0) (4=1) into ongegrond.
freq var=ongegrond.
recode outcomenumeriek (1=1) (2,3=sysmis) (4=0) into gegrondvsongegrond.
freq var=gegrondvsongegrond outcome.

CORRELATIONS
  /VARIABLES=verdict_length similarity_score references experience_griffier_days experience_voorzitter_days single_judge first_instance gegrondvsongegrond
  /PRINT=TWOTAIL NOSIG FULL
  /MISSING=PAIRWISE.

DATASET ACTIVATE DataSet1.
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA COLLIN TOL
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT verdict_length
  /METHOD=ENTER experience_griffier_days
  /METHOD=ENTER experience_voorzitter_days single_judge first_instance gegrondvsongegrond references similarity_score
  /RESIDUALS DURBIN.
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA COLLIN TOL
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT  references
  /METHOD=ENTER experience_griffier_days
  /METHOD=ENTER experience_voorzitter_days single_judge first_instance gegrondvsongegrond verdict_length similarity_score
  /RESIDUALS DURBIN.
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA COLLIN TOL
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT similarity_score
  /METHOD=ENTER experience_griffier_days
  /METHOD=ENTER experience_voorzitter_days single_judge first_instance gegrondvsongegrond references verdict_length 
  /RESIDUALS DURBIN.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA COLLIN TOL
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT verdict_length
  /METHOD=ENTER experience_griffier_days
  /METHOD=ENTER experience_voorzitter_days single_judge first_instance references similarity_score
  /RESIDUALS DURBIN.
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA COLLIN TOL
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT  references
  /METHOD=ENTER experience_griffier_days
  /METHOD=ENTER experience_voorzitter_days single_judge first_instance verdict_length similarity_score
  /RESIDUALS DURBIN.
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA COLLIN TOL
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT similarity_score
  /METHOD=ENTER experience_griffier_days
  /METHOD=ENTER experience_voorzitter_days single_judge first_instance references verdict_length 
  /RESIDUALS DURBIN.

USE ALL.
COMPUTE filter_$=(gegrondvsongegrond >= 0).
VARIABLE LABELS filter_$ 'gegrondvsongegrond >= 0 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

DESCRIPTIVES VARIABLES=verdict_length references similarity_score_percentage 
    experience_griffier_days experience_voorzitter_days single_judge first_instance gegrondvsongegrond
  /STATISTICS=MEAN STDDEV MIN MAX SKEWNESS KURTOSIS.

FILTER OFF.
USE ALL.
EXECUTE.
